<template>
  <!--    todo 页面样式小程序不生效 -->
  <view class="contentA">
    <view class="box">
      <text>请填写您的反馈</text>

      <view class="addres">
        <u--textarea v-model="feedBack" placeholder="请输入"></u--textarea>
      </view>
    </view>
    <u-button
      @click="go"
      color="linear-gradient(90deg, #0096FF 0%, #003DB1 100%)"
      class="hande"
      >提交意见</u-button
    >
  </view>
</template>
<script>
export default {
  name: "index",
  components: {},
  data() {
    return {
      feedBack: "",
    };
  },
  methods: {
    go() {
		if(this.feedBack == ""){
			this.$.ti_shi('请输入您的反馈');return;
		}
		this.$.ajax(1,"POST",'index/setfeedback',{
			content:this.feedBack
		},(res)=>{
			this.$.ti_shi(res.msg)
			if(res.code == 1){
				setTimeout(()=>{
						uni.navigateBack()
				},1000)
			}
		})
	},
  },
  created() {},
  mounted() {},
};
</script>
<style lang="scss" scoped>
.contentA {
  //position: fixed;
  //width: 100%;
  //height: 100%;
  //display: flex;
  //flex-direction: column;
  padding: 20rpx;
  .box {
    background-color: #fff;
    padding: 20rpx;
    border-radius: 12rpx;
    margin-bottom: 20rpx;
    text {
      font-size: 28rpx;
      font-weight: 400;
      margin-bottom: 20rpx;
      display: block;
    }
  }
}
.addres {
  // .u-textarea{
  //     background: #eee;
  // }
  /deep/ .u-textarea {
    height: 424rpx;
    background: #f4f4f4;
  }
}
</style>

